package com.example.teaching_server.repository;

import com.example.teaching_server.entity.TimeSlotEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 时间段数据访问层
 */
@Repository
public interface TimeSlotRepository extends JpaRepository<TimeSlotEntity, Long> {

    /**
     * 查询所有时间段（按排序号升序排列）
     */
    List<TimeSlotEntity> findAllByOrderBySortOrderAsc();
}
